package designpattern.factory.simple;

/**
 * @author bingo
 * @Date 2018/3/13
 */
public class TVFactory {

    public static TV  createTV(String name){

        if(name.equalsIgnoreCase("HaierTV")){
            return new HaierTV();
        }
        if(name.equalsIgnoreCase("HisenseTV")){
            return new HisenseTV();
        }

        return null;
    }
}
